package ooad.gof.factory.factoryMethod;

import ooad.gof.factory.Driver;
import ooad.gof.factory.Product;

class Client {
	public static void main(String[] args) {
		Driver driver = new Driver();
                Factory factory = new CarFactory();
                Product product = factory.getInstance();
                driver.setProduct(product);
                driver.drive();
	}
}
